<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>千禧宝贝连锁店管理信息系统</title>

</head>
<body>
	<script>
function saveHeadqTagGroup(){
    if (!$('#updateHeadqTagGroupForm').form('validate'))
    	return ;
	else {
	    var params=$("#updateHeadqTagGroupForm").serialize();

        $.post("basicDataJSON!updateHeadqTagGroup",params, updateHeadqTagGroupBKProcess,"json");	
	}
}
function updateHeadqTagGroupBKProcess(data){
	var response = data.response;
	var returnCode = response.returnCode;
	if (returnCode != SUCCESS)
		$.messager.alert('错误', response.message, 'error');
	else {
		$.modalDialog.handler.dialog('close');
		$("#dataGrid").datagrid('reload');
	}		
}
</script>
	<s:form id="updateHeadqTagGroupForm" name="updateHeadqTagGroupForm" method="post"
		action="" cssClass="easyui-form" theme="simple"
		onsubmit="return validateForm();">
		<table width="100%" border="0">
			<tr>
				<td colspan="2"></td>
			</tr>
			<tr class="InnerTableContent">
				<td width="80px;" align="center">标签组名:</td>
				<td><s:hidden name="formBean.headQTagGroup.id" /> <s:textfield
						id="tagName" name="formBean.headQTagGroup.groupName"
						cssClass="easyui-textbox"
						data-options="required:true,validType:['length[2,20]']" style="width:30%;"/></td>
			</tr>
			<tr class="InnerTableContent">
				<td width="80px;" align="center">标签归属 :</td>
				<td> <s:select name="formBean.headQTagGroup.entityType"
									id="type" cssClass="easyui-combobox"
									data-options="width:100,editable:false"
									list="#{'0':'客户','1':'供应商','2':'总部'}" listKey="key" listValue="value" style="width:30%;"/></td>
			</tr>
			<tr class="InnerTableContent">
				<td width="80px;" align="center">标签排序 :</td>
				<td> 
					<s:textfield
												name="formBean.headQTagGroup.sort"
												id="transportationFee" cssClass="easyui-numberspinner"
												data-options="spinAlign:'horizontal',min:0,max:50" style="width:30%;" /></td>			
				</td>
			</tr>
			<tr class="InnerTableContent">
				<td colspan="2"><a onclick="saveHeadqTagGroup();"
					href="javascript:void(0);" class="easyui-linkbutton">保存</a></td>
			</tr>
		</table>
	</s:form>

</body>
</html>